-
-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add jthread repo #5236
add jthread repo #5236
Conversation
packages/j/jthread/xmake.lua
Outdated
add_versions("2023.08.18", "719413043807b77448df3ba1c749798fb72ee459") | ||
add_deps("cmake") | ||
|
||
add_patches("1.3.3", "patches/1.3.3/cmakelist.patch", "4c5162f128f31ebee63805db1dbed0a17fc02b2661958b80468fcffc394d7f4e") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
补丁可以去掉了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果去掉补丁会在shared=true时,仍然会生成静态库
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改补丁
packages/j/jthread/xmake.lua
Outdated
on_test(function (package) | ||
assert(package:check_cxxsnippets({test = [[ | ||
using namespace jthread; | ||
class TestThread : public JThread{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
纯类型定义,没任何实例化对象,测不到 links 吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
packages/j/jrtplib/xmake.lua
Outdated
add_deps("cmake", "jthread", "srtp") | ||
|
||
on_install(function (package) | ||
io.replace("src/CMakeLists.txt", [[ "Enable -Wall -Wextra -Werror" ON]], [[ "Enable -Wall -Wextra -Werror" OFF]]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里是一个 option,直接 -DJRTPLIB_WARNINGSASERRORS=OFF
就行
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jthread 是jrtplib所依赖的库,所以在此添加支持